<?php /*a:2:{s:80:"D:\phpStudy\WWW\tp5\application\admin\view\admin_tool_app\tool_history_list.html";i:1553180614;s:58:"D:\phpStudy\WWW\tp5\application\admin\view\admin\head.html";i:1550326401;}*/ ?>
 <!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>广州商学院lms-后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" type="text/css" href="/static/lib/layui/css/layui.css" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" src="/static/js/jquery.js"></script>
    <script type="text/javascript" src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">预约管理</a>
        <a>
          <cite>器具进行预约情况</cite></a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div style="padding: 20px">
    <table class="layui-table">
        <thead>
        <tr>
            <th>预约人</th>
            <th>器具名称</th>
            <th>开始时间</th>
            <th>时长</th>
            <th>所属课室</th>
            <th>管理教师</th>
            <th>提交时间</th>
            <th>状态</th>
        </thead>
        <tbody>
        <?php if(is_array($tools) || $tools instanceof \think\Collection || $tools instanceof \think\Paginator): $i = 0; $__LIST__ = $tools;if( count($__LIST__)==0 ) : echo "暂无预约数据" ;else: foreach($__LIST__ as $key=>$tool): $mod = ($i % 2 );++$i;?>
        <tr>
            <td><?php echo htmlentities((isset($tool->user->userinfo->realname) && ($tool->user->userinfo->realname !== '')?$tool->user->userinfo->realname:"暂无此人信息")); ?></td>
            <td><?php echo htmlentities((isset($tool->tool->name) && ($tool->tool->name !== '')?$tool->tool->name:"暂无器具信息")); ?></td>
            <td><?php echo htmlentities($tool['starttime']); ?></td>
            <td><?php echo htmlentities($tool['time']); ?>天</td>
            <td><?php echo htmlentities((isset($tool->tool->lab->name) && ($tool->tool->lab->name !== '')?$tool->tool->lab->name:"暂无实验室信息")); ?></td>
            <td><?php echo htmlentities((isset($tool->tool->lab->teacher->realname) && ($tool->tool->lab->teacher->realname !== '')?$tool->tool->lab->teacher->realname:"暂无此人信息")); ?></td>
            <td>
                <?php echo htmlentities($tool['create_time']); ?>
            </td>
            <td>
                <?php switch($tool['statu']): case "0": ?>未审批 <?php break; case "1": ?>借出中，尚未归还 <?php break; case "2": ?><p style="color: darkred">退回</p><?php break; case "3": ?><p style="color: #5FB878">完成</p> <?php break; ?>
                <?php endswitch; ?>
            </td>
        </tr>
        <?php endforeach; endif; else: echo "暂无预约数据" ;endif; ?>
        </tbody>
    </table>
    <div class="page">
        <?php echo $tools; ?>
    </div>
</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });
        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });
</script>
</body>
</html>